package com.dynamixsoftware.printershare.mdns;

import java.io.IOException;

public class DnsRecordService
  extends DnsRecord
{
  int port;
  int priority;
  String server;
  int weight;
  
  public DnsRecordService(String paramString1, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, String paramString2)
  {
    super(paramString1, paramInt1, paramInt2, paramInt3);
    this.priority = paramInt4;
    this.weight = paramInt5;
    this.port = paramInt6;
    this.server = paramString2;
  }
  
  public int getPort()
  {
    return this.port;
  }
  
  public String getServer()
  {
    return this.server;
  }
  
  boolean sameValue(DnsRecord paramDnsRecord)
  {
    DnsRecordService localDnsRecordService = (DnsRecordService)paramDnsRecord;
    return (this.priority == localDnsRecordService.priority) && (this.weight == localDnsRecordService.weight) && (this.port == localDnsRecordService.port) && (this.server.equals(localDnsRecordService.server));
  }
  
  void write(DnsPacketOut paramDnsPacketOut)
    throws IOException
  {
    paramDnsPacketOut.writeShort(this.priority);
    paramDnsPacketOut.writeShort(this.weight);
    paramDnsPacketOut.writeShort(this.port);
    paramDnsPacketOut.writeName(this.server, false);
  }
}


/* Location:           C:\Users\Admin\Desktop\Decompiler\JAD\jd-gui-0.3.6.windows\classes_dex2jar.jar
 * Qualified Name:     com.dynamixsoftware.printershare.mdns.DnsRecordService
 * JD-Core Version:    0.7.0.1
 */